import { baseRequest } from '@/api/dynamic/dynamic'

const optionInfo = {
  state: {
    Users: [],
    Roles: [],
    Organiz: [],
    Types: [],
    Policys: [],
    States: []
  },

  mutations: {
    SET_OPTION: (state, Option) => {
      state.Users = Option.userOptions
      state.Roles = Option.roleOptions
      state.Organiz = Option.companyAndDepOptions
      state.Types = Option.typeOptions
      state.Policys = Option.policyOptions
      state.States = Option.stateOptions
    },
  },

  actions: {
    // 获取用户信息
    GET_OPTION({ commit },data) {
      commit('SET_OPTION', data)
    },
  }
}

export default optionInfo
